package com.sprucetec.live.entity;


import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: zhangyb
 * Date: 2018/10/11
 * Time: 16:56
 * Description: mq消息实体
 **/
public class AssetMqMessage implements Serializable {

    private static final long serialVersionUID = 503492926397325388L;
    private Long id;

    /**
     * 消息类型
     */
    private Integer messageType;

    /**
     * 消息体
     */
    private String messageContent;

    /**
     * 消息状态 预留字段 默认0
     */
    private Integer status;

    private Date createTime;

    private Date updateTime;
    /**
     * 成本中心信息是否同步到AMS:   0：已同步；1 未同步
     */
    private Byte isSysAms;

    /**
     * 成本中心信息是否更新到asset_user表:   0：已更新；1 未更新
     */
    private Byte isUpdateUser;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getMessageType() {
        return messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Byte getIsSysAms() {
        return isSysAms;
    }

    public void setIsSysAms(Byte isSysAms) {
        this.isSysAms = isSysAms;
    }

    public Byte getIsUpdateUser() {
        return isUpdateUser;
    }

    public void setIsUpdateUser(Byte isUpdateUser) {
        this.isUpdateUser = isUpdateUser;
    }



    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("AssetMqMessage{");
        sb.append("id=").append(id);
        sb.append(", messageType='").append(messageType).append('\'');
        sb.append(", messageContent='").append(messageContent).append('\'');
        sb.append(", status=").append(status);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", isSysAms=").append(isSysAms);
        sb.append(", isUpdateUser=").append(isUpdateUser);
        sb.append('}');
        return sb.toString();
    }
}
